home *** CD-ROM | disk | FTP | other *** search
/ Advanced Placement Companion: Precalculus / Advanced Placement Companion: Precalculus.iso / pc / M_DIR / 12-02002.DIR / 00019.ls < prev    next >
Encoding:
Text File  |  1998-04-28  |  1019 b   |  44 lines

  1. on specA sNum, graphicNum
  2.   setCursor(sNum)
  3.   if rollOver(sNum) = 1 then
  4.     set the visible of sprite graphicNum to 1
  5.   else
  6.     set the visible of sprite graphicNum to 0
  7.   end if
  8. end
  9.  
  10. on setCursor sNum
  11.   set the cursor of sprite sNum to [cast "Hand Cursor", cast "hand cursor alpha"]
  12. end
  13.  
  14. on specC sNum, graphicNum
  15.   if rollOver(sNum) = 1 then
  16.     set the visible of sprite graphicNum to 1
  17.   else
  18.     set the visible of sprite graphicNum to 0
  19.   end if
  20. end
  21.  
  22. on SpecD sNum, location
  23.   set thisOne to the clickOn
  24.   set the locH of sprite thisOne to the locH of sprite thisOne + 2
  25.   set the locV of sprite thisOne to the locV of sprite thisOne + 2
  26.   updateStage()
  27.   puppetSound("click")
  28.   updateStage()
  29.   repeat while soundBusy(1)
  30.   end repeat
  31.   set the locH of sprite thisOne to the locH of sprite thisOne - 2
  32.   set the locV of sprite thisOne to the locV of sprite thisOne - 2
  33.   updateStage()
  34.   if the clickOn = sNum then
  35.     go(location)
  36.   else
  37.   end if
  38. end
  39.  
  40. on SpecE location
  41.   puppetSound("click")
  42.   go(location)
  43. end
  44.